#include<bits/stdc++.h>
using namespace std;
int n,k,a[1000000];
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>k;
        for(int j=1;j<=k;j++){
            cin>>a[j];
            cout<<a[j]<<endl;
        }
    }
    return 0;
}
